package com.heima.test01;

public class Product {
    private String Name;
    private int Price;
    private int Count;

    public Product() {
    }

    public Product(String name, int price, int count) {
        Name = name;
        Price = price;
        Count = count;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public int getPrice() {
        return Price;
    }

    public void setPrice(int price) {
        Price = price;
    }

    public int getCount() {
        return Count;
    }

    public void setCount(int count) {
        Count = count;
    }

    public int sumPrice(){
        return getPrice()*getCount();
    }

}
